-- GENERATED SPELL FOR [Dragonflayer Defender] --


function spell0_24533(pUnit, Event) --@Harpoon Toss,n/a--
pUnit:FullCastSpellOnTarget(44188,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24533', 1500, 1)
end

function Sorts_24533(pUnit, Event)
local choix_sorts_24533 = math.random(0, 0)
if choix_sorts_24533 == 0 then
pUnit:RegisterEvent('spell0_24533', 1, 1)
end
end

function mob24533_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_24533', math.random(1500, 3000), 1)
end

function mob24533_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24533_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24533_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(24533, 1, 'mob24533_Action')
RegisterUnitEvent(24533, 2, 'mob24533_Leave')
RegisterUnitEvent(24533, 3, 'mob24533_Kill')
RegisterUnitEvent(24533, 4, 'mob24533_Die')
